﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data.SqlClient;

namespace DAL
{
    /// <summary>
    /// 查询对象，封装常见查询的参数
    /// chenjing 2009-4-15
    /// </summary>
    public class MyQuery
    {
        #region Member Variables
        protected int _pageno = 1;
        protected int _pagesize = 20;
        protected string _querystring;
        protected Hashtable _paras = new Hashtable();
        #endregion


        public void addParas(string key, Object value)
        {
            _paras.Add(key, value);
        }
        public Hashtable Paras
        {
            get { return _paras; }
        }
        public string QueryString
        {
            get { return _querystring; }
            set { _querystring = value; }
        }
        public int PageSize
        {
            get { return _pagesize; }
            set { _pagesize = value; }
        }
        public int PageNo
        {
            get { return _pageno; }
            set { _pageno = value; }
        }

        public void setQueryString(string queryText)
        {
            this._querystring = queryText;
        }
    }
}
